package com.yanqu.road.entity.log.cross.jiuzhou;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

@FieldTypeAnnotation(desc = "九州棋局-战斗结算日志", tableName = "t_l_ck_jiu_zhou_battle_settle", autoSave = true, uploadCk = true, isCross = true)
public class LogJiuZhouBattleSettle extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "轮次")
    private int round;

    @FieldTypeAnnotation(desc = "房间id")
    private int roomId;

    @FieldTypeAnnotation(desc = "战场数")
    private int gameRound;

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "房间排名")
    private int roomRank;

    @FieldTypeAnnotation(desc = "剩余血量")
    private int hp;

    @FieldTypeAnnotation(desc = "总伤害")
    private int attackDamage;

    @FieldTypeAnnotation(desc = "获得积分")
    private long score;

    @FieldTypeAnnotation(desc = "获得奖励")
    private String reward;

    @FieldTypeAnnotation(desc = "添加时间")
    private long addTime;

    public LogJiuZhouBattleSettle(int activityId, int round, int roomId, int gameRound, long userId, int roomRank, int hp, int attackDamage, long score, String reward, long addTime) {
        this.activityId = activityId;
        this.round = round;
        this.roomId = roomId;
        this.gameRound = gameRound;
        this.userId = userId;
        this.roomRank = roomRank;
        this.hp = hp;
        this.attackDamage = attackDamage;
        this.score = score;
        this.reward = reward;
        this.addTime = addTime;
    }

    @Override
    public long getUserId() {
        return userId;
    }
}
